<?php

namespace App\Validators\Buz;

use \Prettus\Validator\Contracts\ValidatorInterface;
use \Prettus\Validator\LaravelValidator;

class PasswordValidator extends LaravelValidator
{

    protected $rules = [
        'login' => [
            'login_pwd' => 'required',
            'new_login_pwd' => 'required|min:6|max:32',
            'new_login_pwd_confirmation' => 'required|same:new_login_pwd'
        ],
        'trade' => [
            'trade_pwd' => 'required',
            'new_trade_pwd' => 'required|min:6|max:32',
            'new_trade_pwd_confirmation' => 'required|same:new_trade_pwd'
        ]
   ];

    protected $attributes = [
        'login_pwd' => '原登录密码',
        'new_login_pwd' => '新登录密码',
        'new_login_pwd_confirmation' => '确认密码',
        'trade_pwd' => '原交易密码',
        'new_trade_pwd' => '新交易密码',
        'new_trade_pwd_confirmation' => '确认密码'
    ];
}
